package tech.veedo.munchkin.beans.backend;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import tech.veedo.munchkin.beans.basic.Base;
import tech.veedo.munchkin.constants.Type;

@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "节点审核人", description = "节点下的审核人，有个人[和岗位(暂时不开发)]两种类型")
@Data
@Accessors(chain = true)
@TableName("MUNC_AUDITOR")
public class Auditor extends Base<Auditor> {

    @ApiModelProperty("版本号")
    @Version
    private Long version;

    @ApiModelProperty("所属节点标识")
    @TableField("node_id")
    private Long nodeID;

    @ApiModelProperty("审核人员类型")
    private Type type;

    @ApiModelProperty("审核人员重要等级")
    private Integer lv;

    @ApiModelProperty("审核人员标识")
    @TableField("psn_id")
    private String psnID;

    @ApiModelProperty("审核人员名称")
    @TableField("psn_name")
    private String psnName;

    @ApiModelProperty("审核人员岗位编码")
    @TableField("post_code")
    private String postCode;

    @ApiModelProperty("审核人员岗位名称")
    @TableField("post_name")
    private String postName;

}
